package com.xiaoma.seckill.feign;

import entity.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: xiaoma
 * @Date: 2021/7/27 15:45
 * @description:
 */
@FeignClient("xiaoma-shop-goods")
public interface GoodsFeignService {
    @GetMapping("/goods/queryGoodsById/{id}")
    public Goods queryGoodsById(@PathVariable("id") Integer id);
}
